package com.angel.architecture.context;

public class ExecutionContext{

	private static final ThreadLocalExecutionContext localExecutionContext = new ThreadLocalExecutionContext();

	@SuppressWarnings("unchecked")
	private static class ThreadLocalExecutionContext extends ThreadLocal {
	    public Object initialValue() {
	      return new Context();
	    }
	}

	public static Context getContext() {
		return (Context)localExecutionContext.get();
	}

}
